]> dgit.raspbian.org Git - gnome-shell.git/commit
overviewControls: Limit Dash height to 15% of the overview's
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 22 Jan 2021 13:36:37 +0000 (10:36 -0300)
committerMarge Bot <marge-bot@gnome.org>
Thu, 11 Feb 2021 22:31:50 +0000 (22:31 +0000)
commitc0a4d90847484077b97cf4fe99b40c017f972c40
treed55d90f3c682c6717e2c0a115a4c5b7d47c24f98
parent1b51ae150d67faf27e6a0d3133c0b4c16819c13f
overviewControls: Limit Dash height to 15% of the overview's

Back when the Dash was vertical, the size of each item was calculated
solely based on the available height. After making the Dash horizontal,
this was swapped by the available width. However, when the height of the
Dash decreases, the current code results in never scaling them up ever
again.

Fix that by making ControlsManagerLayout explicitly pass the maximum Dash
sizes. Remove the 'notify::width' handler that served the same purpose.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3651

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1638>
js/ui/dash.js
js/ui/overviewControls.js